import React from 'react'
import { hydrateRoot } from 'react-dom/client'
import { StyleProvider, createCache } from '@ant-design/cssinjs'
import App from './App'

// 创建样式缓存，确保与服务端一致
const cache = createCache()

// 客户端水合 - 确保样式优先级与服务端一致
hydrateRoot(
  document.getElementById('root'),
  <StyleProvider hashPriority="high" cache={cache}>
    <App />
  </StyleProvider>
)